<template>
  <div>
    <ul>
      <!-- li{$}*10 -->
      <li v-for="(item, index) in arr" :key="item">
        {{ item }}
        <button :value="item" @click="arr.splice(index, 1)">删除</button>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
    };
  },
};
</script>

<style>
</style>